#!/bin/bash
echo -e "\n\033[46;37m 开始配置应用 \033[1m" 



#samba
sudo sed -i '/Share Definitions/,$d'  /etc/samba/smb.conf
echo \
'#====== Share Definitions ===========
[pi]
   comment = /home/pi
   create mask = 0664
   directory mask = 0775
   path = /home/pi
   read only = No
[pi共享]
   comment = 1TB 磁盘
   create mask = 0664
   directory mask = 0775
   path = /media/1/
   read only = No
'  | sudo tee -a  /etc/samba/smb.conf
# 配置samba密码:    sudo smbpasswd -a $USER
sudo /etc/init.d/smbd restart


#thunar
[ ! -z "$( dpkg -l |grep -E 'thunar' )" ] && \
    ( sudo mkdir ~/.config/tumbler ;  sudo ln -f ~/系统配置/软件配置/tumbler/tumbler.rc  ~/.config/tumbler/tumbler.rc )
sudo killall tumblerd


echo -e "\033[46;37m 配置应用结束 \033[0m\n" 
exit 0
